package com.pmx.mall.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@MapperScan("com.pmx.mall.order.dao")
// 暴露服务，使注册中心能发现此服务
@EnableDiscoveryClient
// 开启远程调用 feign，    basePackages 属性指定远程调用的feign接口位置
@EnableFeignClients(basePackages = "com.pmx.mall.order.feign")
@EnableRedisHttpSession
public class MallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallOrderApplication.class, args);
    }

}
